/**
* @file menu_widget.c
* @brief this is a brief description
* @details this is the detail description.
* @author fulong 
* @data 2014/10/16
* @version 1.0
* @par Copyright (c):
* @par First build
*     version: fulong 
*     data: 2014/10/16
*/
#include "XT14012_menu_widget.h"
#include "../../../../app/menu/menu_common.h"
#include "../../../../app/menu/menu_process.h"
#include "XT14012_button_process.h"
#include "../../../../hal/action/action.h"

#ifdef __XT14012__
    #ifdef MENU_ENABLE
    #define START_PARAM_NUM_FIRST 0
    #define START_PARAM_NUM_SECOND 1
extern uint8 param[PARAM_MAX];
extern inner_proc_struct inner_proc_var[MENU_MAX_COUNT];
extern menu_id_table_struct menu_widget_table;
extern menu_id_table_index_struct menu_widget_index;
//控件
// 显示开始画面 0
static_text_widget_struct menu_static_text0;
static_text_widget_struct menu_static_text1;
//密码菜单   1
static_text_widget_struct passwd_static_text0;
display_text_widget_struct passwd_dis_text0;
display_text_widget_struct passwd_dis_text1;
display_text_widget_struct passwd_dis_text2;
display_text_widget_struct passwd_dis_text3;
display_text_widget_struct passwd_dis_text4;
display_text_widget_struct passwd_dis_text5;
menu_button_struct  passwd_button_up;
menu_button_struct  passwd_button_down;
menu_button_struct  passwd_button_sure;
menu_button_struct  passwd_button_left_select;
menu_button_struct  passwd_button_right_select;
//进入参数设置菜单  2
display_text_widget_struct param_setting_dis_text0;
display_text_widget_struct param_setting_dis_text1;
display_text_widget_struct param_dis_text0;
display_text_widget_struct param_dis_text1;
display_text_widget_struct param_dis_text2;
display_text_widget_struct param_dis_text3;
display_text_widget_struct param_dis_text4;
display_text_widget_struct param_dis_text5;
display_text_widget_struct param_dis_text6;
display_text_widget_struct param_dis_text7;
display_text_widget_struct param_dis_text8;
display_text_widget_struct param_dis_text9;
display_text_widget_struct param_dis_text10;
display_text_widget_struct param_dis_text11;
menu_button_struct  param_button_down;
menu_button_struct  param_button_sure;
menu_button_struct  param_button_left;
menu_button_struct  param_button_right;
menu_button_struct  param_button_up;
menu_button_struct  param_button_next_page;
//display_text_widget_struct enter_setting_dis_text1;
//display_text_widget_struct enter_setting_dis_text2;
//menu_button_struct  enter_setting_button_sure;
//menu_button_struct  enter_setting_button_up;
//menu_button_struct  enter_setting_button_select;
//参数设置菜单   3
//display_text_widget_struct setting_dis_text0;
//display_text_widget_struct setting_dis_text1;
//display_text_widget_struct setting_dis_text2;
//menu_button_struct  setting_button_sure;
//menu_button_struct  setting_button_up;
//menu_button_struct  setting_button_select;
void menu_widget_create(void)
{
    uint8 len = 0;
    uint8 menu_counter = 0;
    menu_widget_index.menu_table_index[menu_counter] = len;
    inner_proc_var[menu_counter].inner_proc_time = 2000;
    inner_proc_var[menu_counter].inner_proc_type = OVERTIME_OPERA;
    inner_proc_var[menu_counter].extend_var = 1; //跳转到菜单1
    menu_static_text0.static_text = "广州星特";
    menu_static_text0.static_text_x = 2 * 16;
    menu_static_text0.static_text_y = 0;
    menu_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    menu_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    menu_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    menu_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = STATIC_TEXT;
    menu_widget_table.menu_table[len] = (void *)&menu_static_text0;
    len++;
    menu_static_text1.static_text = "XT14012 v1.1";
    menu_static_text1.static_text_x = 8;
    menu_static_text1.static_text_y = 1;
    menu_static_text1.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    menu_static_text1.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    menu_static_text1.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    menu_static_text1.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = STATIC_TEXT;
    menu_widget_table.menu_table[len] = (void *)&menu_static_text1;
    len++;
    menu_counter++;
//密码菜单
    menu_widget_index.menu_table_index[menu_counter] = len;
    passwd_static_text0.static_text = "输入密码:";
    passwd_static_text0.static_text_x = 0;
    passwd_static_text0.static_text_y = 0;
    passwd_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_static_text0.static_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = STATIC_TEXT;
    menu_widget_table.menu_table[len] = (void *)&passwd_static_text0;
    len++;
    passwd_dis_text0.dis_var = 0;
    passwd_dis_text0.dis_type = MENU_DIS_VAR;
    passwd_dis_text0.dis_text_x = 3 * 8;
    passwd_dis_text0.dis_text_y = 1;
    passwd_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    register_ctrllable_table(len);
    passwd_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    passwd_dis_text0.delay_flash_flag = MENU_FLASH_FLAG;
    passwd_dis_text0.display_clr_flag = 0;
    passwd_dis_text0.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text0;
    len++;

    passwd_dis_text1.dis_var = 0;
    passwd_dis_text1.dis_type = MENU_DIS_VAR;
    passwd_dis_text1.dis_text_x = 4 * 8;
    passwd_dis_text1.dis_text_y = 1;
    passwd_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    passwd_dis_text1.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    passwd_dis_text1.display_clr_flag = 0;
    passwd_dis_text1.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text1;
    len++;

    passwd_dis_text2.dis_var = 0;
    passwd_dis_text2.dis_type = MENU_DIS_VAR;
    passwd_dis_text2.dis_text_x = 5 * 8;
    passwd_dis_text2.dis_text_y = 1;
    passwd_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    register_ctrllable_table(len);
    passwd_dis_text2.delay_flash_flag = MENU_FLASH_FLAG2;
    passwd_dis_text2.display_clr_flag = 0;
    passwd_dis_text2.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text2;
    len++;
    passwd_dis_text3.dis_var = 0;
    passwd_dis_text3.dis_type = MENU_DIS_VAR;
    passwd_dis_text3.dis_text_x = 6 * 8;
    passwd_dis_text3.dis_text_y = 1;
    passwd_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    register_ctrllable_table(len);
    passwd_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    passwd_dis_text3.delay_flash_flag = MENU_FLASH_FLAG;
    passwd_dis_text3.display_clr_flag = 0;
    passwd_dis_text3.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text3;
    len++;

    passwd_dis_text4.dis_var = 0;
    passwd_dis_text4.dis_type = MENU_DIS_VAR;
    passwd_dis_text4.dis_text_x = 7 * 8;
    passwd_dis_text4.dis_text_y = 1;
    passwd_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    passwd_dis_text4.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    passwd_dis_text4.display_clr_flag = 0;
    passwd_dis_text4.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text4;
    len++;

    passwd_dis_text5.dis_var = 0;
    passwd_dis_text5.dis_type = MENU_DIS_VAR;
    passwd_dis_text5.dis_text_x = 8 * 8;
    passwd_dis_text5.dis_text_y = 1;
    passwd_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    passwd_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    register_ctrllable_table(len);
    passwd_dis_text5.delay_flash_flag = MENU_FLASH_FLAG2;
    passwd_dis_text5.display_clr_flag = 0;
    passwd_dis_text5.flash_enable = 1;
    menu_widget_table.menu_table[len] = (void *)&passwd_dis_text5;
    len++;

    passwd_button_up.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_button_up.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    passwd_button_up.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_button_up.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    passwd_button_up.delay_button_time = 0;
    passwd_button_up.bind_key = 0x8;
    passwd_button_up.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    passwd_button_up.menu_button_proc_fun = menu_passwd_button_up;
    menu_widget_table.menu_table[len] = (void *)&passwd_button_up;
    len++;

    passwd_button_down.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_button_down.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    passwd_button_down.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_button_down.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    passwd_button_down.delay_button_time = 0;
    passwd_button_down.bind_key = 0x4;
    passwd_button_down.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    passwd_button_down.menu_button_proc_fun = menu_passwd_button_down;
    menu_widget_table.menu_table[len] = (void *)&passwd_button_down;
    len++;
    passwd_button_left_select.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_button_left_select.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    passwd_button_left_select.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_button_left_select.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    passwd_button_left_select.delay_button_time = 0;
    passwd_button_left_select.bind_key = 0x80;
    passwd_button_left_select.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    passwd_button_left_select.menu_button_proc_fun = menu_passwd_button_left_select;
    menu_widget_table.menu_table[len] = (void *)&passwd_button_left_select;
    len++;
    passwd_button_right_select.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_button_right_select.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    passwd_button_right_select.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_button_right_select.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    passwd_button_right_select.delay_button_time = 0;
    passwd_button_right_select.bind_key = 0x40;
    passwd_button_right_select.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    passwd_button_right_select.menu_button_proc_fun = menu_passwd_button_right_select;
    menu_widget_table.menu_table[len] = (void *)&passwd_button_right_select;
    len++;

    passwd_button_sure.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    passwd_button_sure.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    passwd_button_sure.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    passwd_button_sure.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    passwd_button_sure.delay_button_time = 0;
    passwd_button_sure.bind_key = 0x2;
    passwd_button_sure.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    passwd_button_sure.menu_button_proc_fun = menu_passwd_button_sure;
    menu_widget_table.menu_table[len] = (void *)&passwd_button_sure;
    len++;
    menu_counter++;
//参数设置菜单
    menu_widget_index.menu_table_index[menu_counter] = len;

    param_setting_dis_text0.dis_type = MENU_DIS_TEXT;
    param_setting_dis_text0.dis_text_x = 0;
    param_setting_dis_text0.dis_text_y = 0;
    param_setting_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_setting_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_setting_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_setting_dis_text0.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    register_ctrllable_table(len);
    param_setting_dis_text0.delay_flash_flag = MENU_FLASH_FLAG2;
    param_setting_dis_text0.display_clr_flag = 0;
    param_setting_dis_text0.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_setting_dis_text0;
    len++;
    param_setting_dis_text1.dis_type = MENU_DIS_TEXT;
    param_setting_dis_text1.dis_text_x = 0;
    param_setting_dis_text1.dis_text_y = 1;
    param_setting_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_setting_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_setting_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_setting_dis_text1.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    register_ctrllable_table(len);
    param_setting_dis_text1.delay_flash_flag = MENU_FLASH_FLAG1;
    param_setting_dis_text1.display_clr_flag = 0;
    param_setting_dis_text1.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_setting_dis_text1;
    len++;

    param_dis_text2.dis_var = read_action_param(START_PARAM_NUM_FIRST) / 1000 % 10;
    param_dis_text2.dis_type = MENU_DIS_VAR;
    param_dis_text2.dis_text_x = 11 * 8;
    param_dis_text2.dis_text_y = 0;
    param_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text2.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text2.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text2.display_clr_flag = 0;
    param_dis_text2.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text2;
    len++;

    param_dis_text3.dis_var = read_action_param(START_PARAM_NUM_FIRST) / 100 % 10;
    param_dis_text3.dis_type = MENU_DIS_VAR;
    param_dis_text3.dis_text_x = 12 * 8;
    param_dis_text3.dis_text_y = 0;
    param_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text3.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text3.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text3.display_clr_flag = 0;
    param_dis_text3.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text3;
    len++;

    param_dis_text4.dis_var = read_action_param(START_PARAM_NUM_FIRST) / 10 % 10;
    param_dis_text4.dis_type = MENU_DIS_VAR;
    param_dis_text4.dis_text_x = 13 * 8;
    param_dis_text4.dis_text_y = 0;
    param_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text4.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text4.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text4.display_clr_flag = 0;
    param_dis_text4.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text4;
    len++;

    param_dis_text5.dis_var = read_action_param(START_PARAM_NUM_FIRST) % 10;
    param_dis_text5.dis_type = MENU_DIS_VAR;
    param_dis_text5.dis_text_x = 14 * 8;
    param_dis_text5.dis_text_y = 0;
    param_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text5.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text5.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text5.display_clr_flag = 0;
    param_dis_text5.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text5;
    len++;

    param_dis_text8.dis_var = read_action_param(START_PARAM_NUM_SECOND) / 1000 % 10;
    param_dis_text8.dis_type = MENU_DIS_VAR;
    param_dis_text8.dis_text_x = 11 * 8;
    param_dis_text8.dis_text_y = 1;
    param_dis_text8.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text8.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text8.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text8.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text8.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text8.display_clr_flag = 0;
    param_dis_text8.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text8;
    len++;
    param_dis_text9.dis_var = read_action_param(START_PARAM_NUM_SECOND) / 100 % 10;
    param_dis_text9.dis_type = MENU_DIS_VAR;
    param_dis_text9.dis_text_x = 12 * 8;
    param_dis_text9.dis_text_y = 1;
    param_dis_text9.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text9.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text9.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text9.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text9.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text9.display_clr_flag = 0;
    param_dis_text9.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text9;
    len++;
    param_dis_text10.dis_var =  read_action_param(START_PARAM_NUM_SECOND) / 10 % 10;
    param_dis_text10.dis_type = MENU_DIS_VAR;
    param_dis_text10.dis_text_x = 13 * 8;
    param_dis_text10.dis_text_y = 1;
    param_dis_text10.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text10.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text10.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text10.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text10.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text10.display_clr_flag = 0;
    param_dis_text10.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text10;
    len++;
    param_dis_text11.dis_var = read_action_param(START_PARAM_NUM_SECOND) % 10;
    param_dis_text11.dis_type = MENU_DIS_VAR;
    param_dis_text11.dis_text_x = 14 * 8;
    param_dis_text11.dis_text_y = 1;
    param_dis_text11.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_dis_text11.dis_txt_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_TEXT;
    param_dis_text11.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_dis_text11.dis_txt_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = DISPLAY_TEXT;
    param_dis_text11.delay_flash_flag = MENU_FLASH_FLAG1;
    register_ctrllable_table(len);
    param_dis_text11.display_clr_flag = 0;
    param_dis_text11.flash_enable = 0;
    menu_widget_table.menu_table[len] = (void *)&param_dis_text11;
    len++;

    param_button_next_page.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_next_page.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_next_page.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_next_page.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_next_page.delay_button_time = 0;
    param_button_next_page.bind_key = 0x800;
    param_button_next_page.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_next_page.menu_button_proc_fun = menu_param_button_next_page;
    menu_widget_table.menu_table[len] = (void *)&param_button_next_page;
    len++;
    param_button_sure.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_sure.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_sure.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_sure.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_sure.delay_button_time = 0;
    param_button_sure.bind_key = 0x2;
    param_button_sure.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_sure.menu_button_proc_fun = menu_param_button_sure;
    menu_widget_table.menu_table[len] = (void *)&param_button_sure;
    len++;
    param_button_up.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_up.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_up.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_up.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_up.delay_button_time = 0;
    param_button_up.bind_key = 0x8;
    param_button_up.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_up.menu_button_proc_fun = menu_param_button_up;
    menu_widget_table.menu_table[len] = (void *)&param_button_up;
    len++;
    param_button_down.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_down.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_down.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_down.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_down.delay_button_time = 0;
    param_button_down.bind_key = 0x4;
    param_button_down.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_down.menu_button_proc_fun = menu_param_button_down;
    menu_widget_table.menu_table[len] = (void *)&param_button_down;
    len++;
    param_button_right.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_right.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_right.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_right.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_right.delay_button_time = 0;
    param_button_right.bind_key = 0x40;
    param_button_right.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_right.menu_button_proc_fun = menu_param_button_right;
    menu_widget_table.menu_table[len] = (void *)&param_button_right;
    len++;
    param_button_left.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.menu_id4widget = menu_counter;
    param_button_left.button_widget_id.menu_widget_seg.widget_seg0.bit0_widget_seg.widget_proc_type = WIDGET_BUTTON;
    param_button_left.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.menu_widget_id = len;
    param_button_left.button_widget_id.menu_widget_seg.widget_seg1.bit1_widget_seg.widget_seg_type = MENU_BUTTON_PRESS;
    param_button_left.delay_button_time = 0;
    param_button_left.bind_key = 0x80;
    param_button_left.delay_button_node = WIDGET_BUTTON_DELAY_DISABLE;
    param_button_left.menu_button_proc_fun = menu_param_button_left;
    menu_widget_table.menu_table[len] = (void *)&param_button_left;
    len++;
    menu_counter++;
    menu_widget_index.menu_count = menu_counter;
    menu_widget_table.menu_widget_count = len;
}
    #endif
#endif

